package com.ruoyi.project.hcy.task.service;

import com.ruoyi.project.hcy.administrations.domain.Crew;
import com.ruoyi.project.hcy.task.domain.Task;
import com.ruoyi.project.hcy.task.domain.TaskPostpone;

import java.util.List;

/**
 * 任务延期 服务层
 */
public interface ITaskPostponeService {
    /**
     * 根据条件查询任务延期信息集合
     *
     * @param taskPostpone 任务延期信息查询条件
     * @return
     */
    List<TaskPostpone> selectTaskPostponeList(TaskPostpone taskPostpone);

    /**
     * 申请任务延期
     *
     * @param taskPostpone
     * @param taskId
     * @return
     */
    int insertPostpone(TaskPostpone taskPostpone, Long taskId, String taskEndTimeStr, Long userId);

    List<Task> selectTaskList();

    int deleteTaskPostponeByIds(String ids);

    TaskPostpone selectTaskPostponeById(Long postponeId);

    int updateTaskPostpone(TaskPostpone taskPostpone, String taskEndTimeStr, Long taskId);

    Crew selectCrewOfTask(Long taskId);
}
